Skip to content

Load models.dev snapshot from build global#28077

Merged
thdxr merged 1 commit into
devfrom
models-dev-global-snapshot
May 18, 2026
Merged

Load models.dev snapshot from build global#28077
thdxr merged 1 commit into
devfrom
models-dev-global-snapshot

Conversation

@thdxr
Copy link
Copy Markdown
Member

@thdxr thdxr commented May 17, 2026

Summary

  • rename core models service file to models-dev.ts while keeping the ModelsDev namespace
  • inject the models.dev snapshot at build time via OPENCODE_MODELS_DEV
  • remove generated models-snapshot files and update imports

Testing

  • bun typecheck (packages/core)
  • bun typecheck (packages/opencode)
  • bun test test/models.test.ts (packages/core)
  • bun test test/provider/model-status.test.ts (packages/opencode)
  • git push hook: bun turbo typecheck

Copy link
Copy Markdown
Contributor

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@thdxr thdxr merged commit e85119a into dev May 18, 2026
12 checks passed
@thdxr thdxr deleted the models-dev-global-snapshot branch May 18, 2026 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant